package lab.mongo.service;

import com.mongodb.client.result.UpdateResult;
import lab.mongo.pojo.*;

import java.util.List;

public interface IMongoService {

    void addSubjects(List<SubjectInfo> subjects);
    UpdateResult updateSubject(SubjectInfo subject);
    List<SubjectInfo> findSubject(PageInfo pageInfo, QuerySubject query);
    void deleteSubjects(QuerySubject query);

    void addCompanys(List<CompanyInfo> companys);
    List<CompanyInfo> findCompany(PageInfo pageInfo, QueryCompany query);
}
